<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use \dmstr\bootstrap\Tabs;
use yii\helpers\StringHelper;

/**
* @var yii\web\View $this
* @var yiike\finance\models\TokerComboOrder $model
* @var yii\widgets\ActiveForm $form
*/

?>

<div class="toker-combo-order-form">

    <?php $form = ActiveForm::begin([
    'id' => 'TokerComboOrder',
    'layout' => 'horizontal',
    'enableClientValidation' => true,
    'errorSummaryCssClass' => 'error-summary alert alert-danger',
    'fieldConfig' => [
             'template' => "{label}\n{beginWrapper}\n{input}\n{hint}\n{error}\n{endWrapper}",
             'horizontalCssClasses' => [
                 'label' => 'col-sm-2',
                 #'offset' => 'col-sm-offset-4',
                 'wrapper' => 'col-sm-8',
                 'error' => '',
                 'hint' => '',
             ],
         ],
    ]
    );
    ?>

    <div class="">
        <?php $this->beginBlock('main'); ?>

        <p>
            

<!-- attribute uid -->
			<?= $form->field($model, 'uid')->textInput() ?>

<!-- attribute toker_id -->
			<?= $form->field($model, 'toker_id')->textInput() ?>

<!-- attribute combo_id -->
			<?= $form->field($model, 'combo_id')->textInput() ?>

<!-- attribute type -->
			<?= $form->field($model, 'type')->textInput() ?>

<!-- attribute trade_id -->
			<?= $form->field($model, 'trade_id')->textInput(['maxlength' => true]) ?>

<!-- attribute pay_id -->
			<?= $form->field($model, 'pay_id')->textInput(['maxlength' => true]) ?>

<!-- attribute title -->
			<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

<!-- attribute sub_title -->
			<?= $form->field($model, 'sub_title')->textInput(['maxlength' => true]) ?>

<!-- attribute price -->
			<?= $form->field($model, 'price')->textInput(['maxlength' => true]) ?>

<!-- attribute combos -->
			<?= $form->field($model, 'combos')->textInput() ?>

<!-- attribute credit -->
			<?= $form->field($model, 'credit')->textInput() ?>

<!-- attribute task_money -->
			<?= $form->field($model, 'task_money')->textInput(['maxlength' => true]) ?>

<!-- attribute task_tyc -->
			<?= $form->field($model, 'task_tyc')->textInput(['maxlength' => true]) ?>

<!-- attribute day_limit -->
			<?= $form->field($model, 'day_limit')->textInput() ?>

<!-- attribute pid -->
			<?= $form->field($model, 'pid')->textInput() ?>

<!-- attribute ppid -->
			<?= $form->field($model, 'ppid')->textInput() ?>

<!-- attribute community_id -->
			<?= $form->field($model, 'community_id')->textInput() ?>

<!-- attribute company_id -->
			<?= $form->field($model, 'company_id')->textInput() ?>

<!-- attribute is_pay -->
			<?= $form->field($model, 'is_pay')->textInput() ?>

<!-- attribute pay_at -->
			<?= $form->field($model, 'pay_at')->textInput() ?>

<!-- attribute status -->
			<?= $form->field($model, 'status')->textInput() ?>

<!-- attribute pay_by -->
			<?= $form->field($model, 'pay_by')->textInput() ?>

<!-- attribute credit4_rate -->
			<?= $form->field($model, 'credit4_rate')->textInput(['maxlength' => true]) ?>

<!-- attribute name -->
			<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

<!-- attribute location_p -->
			<?= $form->field($model, 'location_p')->textInput(['maxlength' => true]) ?>

<!-- attribute location_c -->
			<?= $form->field($model, 'location_c')->textInput(['maxlength' => true]) ?>

<!-- attribute location_a -->
			<?= $form->field($model, 'location_a')->textInput(['maxlength' => true]) ?>

<!-- attribute express_company -->
			<?= $form->field($model, 'express_company')->textInput(['maxlength' => true]) ?>

<!-- attribute express_code -->
			<?= $form->field($model, 'express_code')->textInput(['maxlength' => true]) ?>

<!-- attribute mobile -->
			<?= $form->field($model, 'mobile')->textInput(['maxlength' => true]) ?>

<!-- attribute pay_method -->
			<?= $form->field($model, 'pay_method')->textInput(['maxlength' => true]) ?>

<!-- attribute address -->
			<?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>

<!-- attribute memo -->
			<?= $form->field($model, 'memo')->textInput(['maxlength' => true]) ?>
        </p>
        <?php $this->endBlock(); ?>
        
        <?=
    Tabs::widget(
                 [
                    'encodeLabels' => false,
                    'items' => [ 
                        [
    'label'   => Yii::t('models', 'TokerComboOrder'),
    'content' => $this->blocks['main'],
    'active'  => true,
],
                    ]
                 ]
    );
    ?>
        <hr/>

        <?php echo $form->errorSummary($model); ?>

        <?= Html::submitButton(
        '<span class="glyphicon glyphicon-check"></span> ' .
        ($model->isNewRecord ? '保存' : '保存'),
        [
        'id' => 'save-' . $model->formName(),
        'class' => 'btn btn-success'
        ]
        );
        ?>

        <?php ActiveForm::end(); ?>

    </div>

</div>

